﻿//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by resource.rc

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        101
#define _APS_NEXT_COMMAND_VALUE         40001
#define _APS_NEXT_CONTROL_VALUE         1001
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

// Program value
//
#ifndef RESOURCE_DEFINE_VALUE

// General
// 
#define SCREEN_WIDTH_MAX GetSystemMetrics(SM_CXSCREEN)
#define SCREEN_HEIGHT_MAX GetSystemMetrics(SM_CYSCREEN)
#define SCREEN_WIDTH 800
#define SCREEN_HEIGHT 600
#define FRAMERATE 30;
#define MESSAGEBOX_WARNING_CAPTION L"Cảnh báo"
#define MESSAGEBOX_ERROR_CAPTION L"Lỗi"
#define LOGSCREEN_HEIGHT 200
#define LOGFONTSIZE 14
// Path resource
//
#define MUSIC_PATH L"Music\\"
#define VIDEO_PATH L"Screen\\"
#define SOUND_PATH L"Sound\\"
#define SPRITE_PATH L"Sprite\\"
#define LOG_FILE_NAME L"log.txt"
// Game class resource
//
#define WINDOWS_TITLE L"Tetris"
#define EXIT_CONFIRM_TEXT L"Bạn thật sự muốn thoát chứ? \
Game sẽ không được lưu!"
#define EXIT_CONFIRM_CAPTION L"Thoát Game?"
#define INIT_ERROR_TEXT L"Khởi tạo game thất bại"

// Screen class resource
//

// Sound class resource
//
#define PCM_BUFFER_SIZE 2304
#define WAVE_FORMAT_EXTENSIBLE 0xFFFE
// Control class resource
//
#define KEY_BUFFER_LENGTH 256
#endif // RESOURCE_DEFINE_VALUE

/* Game constant */

#ifndef GAMEFRAMWEWORK_GAMECONSTANT
#define MAX_MAP_SIZE 67108864 // Max map size is 64MB
#define GAMEFRAMWEWORK_GAMECONSTANT

#define BACKGROUND_SCALE_CONSTANT 2.5

/* game object */

#define PLAYER_MOVE_SPEED 4
#define MOVE_DELAY 0.5

#define CONTROL_LEFT 
#define CONTROL_RIGHT
#define CONTROL_DOWN
#define CONTROL_UP
#define CONTROL_FIRE 
#define CONTROL_JUMP

#endif // GAMEFRAMWEWORK_GAMECONSTANT


//
// Macro
//
#ifndef GAMEFRAMEWORK_MACRO
#define DISALLOW_COPY_AND_ASSIGN(TypeName) TypeName(const TypeName&);\
  void operator=(const TypeName&)
#define KEY_DOWN(vk_code) ((GetAsyncKeyState(vk_code) & 0x8000) ? 1 : 0)
#endif // GAMEFRAMEWORK_MACRO

